<?
require("includes/constants.php");

session_start();
if(!isset($_SESSION['userName']))
	exit();
?>

<div id="mainPopUp">
	<form id="palomasPopForm" name="palomasPopForm" method="post">
		<table id="inPopUpN" border="0" cellpadding="0" cellspacing="0">
			<tbody>
				<tr>
					<td>Nombre</td>
					<td><input id="palomaName" name="palomaName" class="tableIn" type="text"></td>
				</tr>
				<tr>
					<td>Anillo/A&ntilde;o</td>
					<td>
						<input id="palomaAnillo" name="palomaAnillo" class="tableIn" type="text" style="width: 155px;" maxlength="8">
						<input id="palomaAnno" name="palomaAnno" class="tableIn" type="text" style="width: 50px;" maxlength="4">
					</td>
				</tr>
				<tr>
					<td>Sexo</td>
					<td>
						<input type="radio" name="optSexo" value="M">Masculino
						<input type="radio" name="optSexo" value="F">Femenino
					</td>
				</tr>
				<tr>
					<td>Color</td>
					<td><input id="palomaColor" name="palomaColor" class="tableIn" type="text"></td>
				</tr>

				<?if($_SESSION['userType'] == $idTypeAdministrator){?>
					<tr>
						<td>Usuario</td>
						<td><select id="palomaUsuario" name="palomaUsuario" class="tableIn"></select></td>
					</tr>
				<?}?>
			</tbody>
		</table>
		<button id="btnExit" class="itmIngBtnIn">Cerrar</button>
		<button id="btnSave" class="itmIngBtnIn">Guardar</button>
	</form>
</div>

<script>
	$(document).ready(function() {
		$_initPop();
	});
</script>